package com.zed.code.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Order
 * @author 
 */
public class OrderDO implements Serializable {
    private Integer id;

    private Integer userid;

    private Integer stationid;

    private String stationno;

    private String stationname;

    private String orderno;

    private String deviceid;

    private String innerorderno;

    private Integer paymethod;

    private Integer orderstatus;

    private String payaccount;

    private BigDecimal amount;

    private String cardno;

    private BigDecimal quantity;

    private Date paiddate;

    private Date createdate;

    private String name;

    private String mobile;

    private Date startdate;

    private Date enddate;

    private String sessionid;

    private BigDecimal balance;

    private Integer chargestatus;

    private Integer chargemode;

    private BigDecimal modevalue;

    private Date userstarttime;

    private String deviceport;

    private String openid;

    private String wxusername;

    private BigDecimal servicefee;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getStationid() {
        return stationid;
    }

    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    public String getStationno() {
        return stationno;
    }

    public void setStationno(String stationno) {
        this.stationno = stationno;
    }

    public String getStationname() {
        return stationname;
    }

    public void setStationname(String stationname) {
        this.stationname = stationname;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public String getInnerorderno() {
        return innerorderno;
    }

    public void setInnerorderno(String innerorderno) {
        this.innerorderno = innerorderno;
    }

    public Integer getPaymethod() {
        return paymethod;
    }

    public void setPaymethod(Integer paymethod) {
        this.paymethod = paymethod;
    }

    public Integer getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(Integer orderstatus) {
        this.orderstatus = orderstatus;
    }

    public String getPayaccount() {
        return payaccount;
    }

    public void setPayaccount(String payaccount) {
        this.payaccount = payaccount;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public Date getPaiddate() {
        return paiddate;
    }

    public void setPaiddate(Date paiddate) {
        this.paiddate = paiddate;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Integer getChargestatus() {
        return chargestatus;
    }

    public void setChargestatus(Integer chargestatus) {
        this.chargestatus = chargestatus;
    }

    public Integer getChargemode() {
        return chargemode;
    }

    public void setChargemode(Integer chargemode) {
        this.chargemode = chargemode;
    }

    public BigDecimal getModevalue() {
        return modevalue;
    }

    public void setModevalue(BigDecimal modevalue) {
        this.modevalue = modevalue;
    }

    public Date getUserstarttime() {
        return userstarttime;
    }

    public void setUserstarttime(Date userstarttime) {
        this.userstarttime = userstarttime;
    }

    public String getDeviceport() {
        return deviceport;
    }

    public void setDeviceport(String deviceport) {
        this.deviceport = deviceport;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getWxusername() {
        return wxusername;
    }

    public void setWxusername(String wxusername) {
        this.wxusername = wxusername;
    }

    public BigDecimal getServicefee() {
        return servicefee;
    }

    public void setServicefee(BigDecimal servicefee) {
        this.servicefee = servicefee;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderDO other = (OrderDO) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getStationid() == null ? other.getStationid() == null : this.getStationid().equals(other.getStationid()))
            && (this.getStationno() == null ? other.getStationno() == null : this.getStationno().equals(other.getStationno()))
            && (this.getStationname() == null ? other.getStationname() == null : this.getStationname().equals(other.getStationname()))
            && (this.getOrderno() == null ? other.getOrderno() == null : this.getOrderno().equals(other.getOrderno()))
            && (this.getDeviceid() == null ? other.getDeviceid() == null : this.getDeviceid().equals(other.getDeviceid()))
            && (this.getInnerorderno() == null ? other.getInnerorderno() == null : this.getInnerorderno().equals(other.getInnerorderno()))
            && (this.getPaymethod() == null ? other.getPaymethod() == null : this.getPaymethod().equals(other.getPaymethod()))
            && (this.getOrderstatus() == null ? other.getOrderstatus() == null : this.getOrderstatus().equals(other.getOrderstatus()))
            && (this.getPayaccount() == null ? other.getPayaccount() == null : this.getPayaccount().equals(other.getPayaccount()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getCardno() == null ? other.getCardno() == null : this.getCardno().equals(other.getCardno()))
            && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()))
            && (this.getPaiddate() == null ? other.getPaiddate() == null : this.getPaiddate().equals(other.getPaiddate()))
            && (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals(other.getCreatedate()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getStartdate() == null ? other.getStartdate() == null : this.getStartdate().equals(other.getStartdate()))
            && (this.getEnddate() == null ? other.getEnddate() == null : this.getEnddate().equals(other.getEnddate()))
            && (this.getSessionid() == null ? other.getSessionid() == null : this.getSessionid().equals(other.getSessionid()))
            && (this.getBalance() == null ? other.getBalance() == null : this.getBalance().equals(other.getBalance()))
            && (this.getChargestatus() == null ? other.getChargestatus() == null : this.getChargestatus().equals(other.getChargestatus()))
            && (this.getChargemode() == null ? other.getChargemode() == null : this.getChargemode().equals(other.getChargemode()))
            && (this.getModevalue() == null ? other.getModevalue() == null : this.getModevalue().equals(other.getModevalue()))
            && (this.getUserstarttime() == null ? other.getUserstarttime() == null : this.getUserstarttime().equals(other.getUserstarttime()))
            && (this.getDeviceport() == null ? other.getDeviceport() == null : this.getDeviceport().equals(other.getDeviceport()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getWxusername() == null ? other.getWxusername() == null : this.getWxusername().equals(other.getWxusername()))
            && (this.getServicefee() == null ? other.getServicefee() == null : this.getServicefee().equals(other.getServicefee()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getStationid() == null) ? 0 : getStationid().hashCode());
        result = prime * result + ((getStationno() == null) ? 0 : getStationno().hashCode());
        result = prime * result + ((getStationname() == null) ? 0 : getStationname().hashCode());
        result = prime * result + ((getOrderno() == null) ? 0 : getOrderno().hashCode());
        result = prime * result + ((getDeviceid() == null) ? 0 : getDeviceid().hashCode());
        result = prime * result + ((getInnerorderno() == null) ? 0 : getInnerorderno().hashCode());
        result = prime * result + ((getPaymethod() == null) ? 0 : getPaymethod().hashCode());
        result = prime * result + ((getOrderstatus() == null) ? 0 : getOrderstatus().hashCode());
        result = prime * result + ((getPayaccount() == null) ? 0 : getPayaccount().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getCardno() == null) ? 0 : getCardno().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        result = prime * result + ((getPaiddate() == null) ? 0 : getPaiddate().hashCode());
        result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getStartdate() == null) ? 0 : getStartdate().hashCode());
        result = prime * result + ((getEnddate() == null) ? 0 : getEnddate().hashCode());
        result = prime * result + ((getSessionid() == null) ? 0 : getSessionid().hashCode());
        result = prime * result + ((getBalance() == null) ? 0 : getBalance().hashCode());
        result = prime * result + ((getChargestatus() == null) ? 0 : getChargestatus().hashCode());
        result = prime * result + ((getChargemode() == null) ? 0 : getChargemode().hashCode());
        result = prime * result + ((getModevalue() == null) ? 0 : getModevalue().hashCode());
        result = prime * result + ((getUserstarttime() == null) ? 0 : getUserstarttime().hashCode());
        result = prime * result + ((getDeviceport() == null) ? 0 : getDeviceport().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getWxusername() == null) ? 0 : getWxusername().hashCode());
        result = prime * result + ((getServicefee() == null) ? 0 : getServicefee().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", stationid=").append(stationid);
        sb.append(", stationno=").append(stationno);
        sb.append(", stationname=").append(stationname);
        sb.append(", orderno=").append(orderno);
        sb.append(", deviceid=").append(deviceid);
        sb.append(", innerorderno=").append(innerorderno);
        sb.append(", paymethod=").append(paymethod);
        sb.append(", orderstatus=").append(orderstatus);
        sb.append(", payaccount=").append(payaccount);
        sb.append(", amount=").append(amount);
        sb.append(", cardno=").append(cardno);
        sb.append(", quantity=").append(quantity);
        sb.append(", paiddate=").append(paiddate);
        sb.append(", createdate=").append(createdate);
        sb.append(", name=").append(name);
        sb.append(", mobile=").append(mobile);
        sb.append(", startdate=").append(startdate);
        sb.append(", enddate=").append(enddate);
        sb.append(", sessionid=").append(sessionid);
        sb.append(", balance=").append(balance);
        sb.append(", chargestatus=").append(chargestatus);
        sb.append(", chargemode=").append(chargemode);
        sb.append(", modevalue=").append(modevalue);
        sb.append(", userstarttime=").append(userstarttime);
        sb.append(", deviceport=").append(deviceport);
        sb.append(", openid=").append(openid);
        sb.append(", wxusername=").append(wxusername);
        sb.append(", servicefee=").append(servicefee);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}